package com.tl.web02.constant;

import com.alibaba.fastjson.JSONObject;

/**
 * 统一的响应结果
 */
public class ResponseResult {
    private String msg;//响应信息
    private Integer code;//响应值
    private JSONObject data;//响应结果(json对象)

    public ResponseResult(String msg, Integer code, JSONObject data) {
        this.msg = msg;
        this.code = code;
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public JSONObject getData() {
        return data;
    }

    public void setData(JSONObject data) {
        this.data = data;
    }
}
